import Taro from "@tarojs/taro";
import { Component } from "react";
import "./app.less";
class App extends Component<PropsWithChildren> {
  componentDidMount() {
    // TODO: 路由鉴权功能
    Taro.redirectTo({
      url: '/pages/user/index'
    })
    
  }

  componentDidShow () {}

  componentDidHide () {}

  // this.props.children 是将要会渲染的页面
  render() {
    return this.props.children;
  }
}

export default App;
